#include "pthread_pool.hpp"
#include "Task.hpp"

#include <ctime>
#include <cstdlib>

using namespace ns_threadpool;
using namespace ns_task;

int main()
{

    ThreadPool<Task> *tp = new ThreadPool<Task>(3);

    tp->InitThreadPool();

    srand((long long)time(nullptr));

    while (true)
    {
        Task t(rand() % 10 + 1, rand() % 10 + 1, "+-*/"[rand() % 4]);
        tp->PushTask(t);
    }
    
    return 0;
}